package com.xbh.management.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.xbh.common.base.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;

/**
 * @program: management-center
 * @description:
 * @author: 许宝华
 * @create: 2021-08-26 14:15
 */

@Data
public class ManUser extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    @Column(name = "user_id")
    private Long userId;

    @Column(name = "username")
    private String username;

    @Column(name = "person_name")
    private String personName;

    @Column(name = "password")
    private String password;

    @Column(name = "description")
    private String description;

    @Column(name = "birthday")
    private Date birthday;

    @Column(name = "handle_image")
    private String handleImage;

    @Column(name = "email")
    private String email;

    @Column(name = "telephone")
    private String telephone;

    @Column(name = "states")
    private Integer states;

    @TableField(exist = false)
    private String code;

    @TableField(exist = false)
    private String departmentName;
}
